'use strict';
import { MainFrame } from "./pages/MainFrame";

// entry function
let page = new MainFrame();
  function main(){
  setPageContent(page.element);
}

// register function
window.addEventListener("load",main);

/**
 * change page content
 * @param {HTMLElement} contentElement 
 */
export function setPageContent(contentElement){
  let body = document.querySelector("#app");
  body.innerHTML = ""; // clear
  body.append(contentElement);
}
